package com.atguigu.day22.clazz04;

public class Animal {

}
class Dog extends Animal implements A,B{
    String name = "Dog";

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                '}';
    }
}
class Cat extends Animal{
    String name = "Cat";

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                '}';
    }
}

interface A{}
interface B{}
